package sample.com.nky.bean;

import javafx.beans.property.ReadOnlyStringProperty;
import javafx.beans.property.ReadOnlyStringWrapper;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

public class User {

    private final ReadOnlyStringWrapper userName;
    private StringProperty password;

    public String getUserName() {
        return userName.get();
    }

    public ReadOnlyStringWrapper userNameProperty() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName.set(userName);
    }

    public String getPassword() {
        return password.get();
    }

    public StringProperty passwordProperty() {
        return password;
    }

    public void setPassword(String password) {
        this.password.set(password);
    }

    public User() {
        this.userName = new ReadOnlyStringWrapper(this, "userName", "ABC");
        this.password = new SimpleStringProperty(this, "password", "");
    }


}
